<?php

namespace library\Core\Db;

class CDbTable {
    
    public $_DbName_ = NULL;
    public $_SeleteAdapter = 'slave'; 
    public $_ModifyAdapter = 'master';
    public $_TableName_ = NULL;
    
    
    private $_Original_Row_ = NULL;
    public function setOriginalRow($row){
        $this->_Original_Row_ = $row;
    }
    public function getOriginalRow(){
        return $this->_Original_Row_;
    }
    
    public function __construct() {
        
    }
    
    public function getClassName(){
        
        return get_class($this);
    }
    
    public static function getInstance(){
        $calledClass  = get_called_class();
        return new $calledClass();
        
    }

}
